Creates an interactive figure for examining bio-logging sensor and event data. The high resolution of bio-logging sensor data relative to the duration of deployments limits the utility of static figures. sb_plot_data uses plotly to create an interactive figure for looking in-depth at bio-logging data. Each column in the sensor data is rendered as a separate time series with known events indicated as points. Interaction supports linked time axes, zooming, and panning.

sb_plot_data(deployid, sensors, events)

Arguments

deployid

[character(1)] ID of the deployment to visualize. Must be a deployment in both sensors and events.

sensors

[Sensors] Bio-logging sensor data (see Sensors).

events

[Events] Labeled behavioral events (see Events).

Value

An interactive figure.

Examples

# Load sample data and split test/train
c(lunge_sensors, lunge_events) %<-% load_lunges()
deployid <- deployments(lunge_sensors)[1]
sb_plot_data(deployid, lunge_sensors, lunge_events)